//******************************************************************************
//  _____                  _    _             __
// |  _  |                | |  | |           / _|
// | | | |_ __   ___ _ __ | |  | | __ _ _ __| |_ __ _ _ __ ___
// | | | | '_ \ / _ \ '_ \| |/\| |/ _` | '__|  _/ _` | '__/ _ \
// \ \_/ / |_) |  __/ | | \  /\  / (_| | |  | || (_| | | |  __/
//  \___/| .__/ \___|_| |_|\/  \/ \__,_|_|  |_| \__,_|_|  \___|
//       | |               We don't make the game you play.
//       |_|                 We make the game you play BETTER.
//
//            Website: http://openwarfaremod.com/
//******************************************************************************
// MAP ROTATION
// ALL VARIABLES WORK IN RANKED AND UNRANKED MODES
//******************************************************************************
// PLEASE REMEMBER TO UNCOMMENT THE LINES BY REMOVING THE DOUBLE SLASHES (//)
// WHEN CHANGING A VALUE. PLEASE DO NOT UNCOMMENT LINES SET TO DEFAULT VALUES.
//******************************************************************************

#include openwarfare\_utils;


init() {
printDebugLine( "configs\server\mapcontrol::init()" );
//******************************************************************************
// AUTOMATIC ROTATION WHEN EMPTY
//******************************************************************************
// Controls whether the server should rotate the map if empty for a certain time
// 0 = Disabled (default), 1 = Enabled
setModDVar("scr_rotateifempty_enable", "1");

// Time to automatically rotate the current map when empty
// Allowed values: 60-3600 (default is 600)
setModDVar("scr_rotateifempty_time", "600");

// If there are still players (in same team) or a single player a message will be
// shown before forcing a rotate.
// Allowed values: 0-60 (default is 15)
setModDVar("scr_rotateifempty_grace_period", "15");
}